* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #1a6dcc, #0d4a9e);
    color: white;
    padding: 20px 30px;
    text-align: center;
}

header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

header p {
    font-size: 18px;
    opacity: 0.9;
}

main {
    padding: 30px;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-section h2 {
    font-size: 18px;
    color: #1a6dcc;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e6f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 5px;
}

input, select {
    padding: 12px 15px;
    border: 1px solid #d1d7e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

input:focus, select:focus {
    outline: none;
    border-color: #1a6dcc;
    box-shadow: 0 0 0 3px rgba(26, 109, 204, 0.1);
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #1a6dcc, #0d4a9e);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d4a9e, #1a6dcc);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 74, 158, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 20px;
    background: #f1f5f9;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #e0e6f0;
}

.print-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fc;
    border-bottom: 1px solid #e0e6f0;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .container {
        margin: 10px;
    }

    .a4-page {
        width: 100%;
        padding: 1cm;
        box-shadow: none;
    }

    .barcode-grid {
        grid-template-columns: 1fr;
    }
}